package com.desaysv.hicar.http;

import com.desaysv.svhttp.anno.Body;
import com.desaysv.svhttp.anno.GET;
import com.desaysv.svhttp.anno.POST;
import com.desaysv.svhttp.anno.Param;
import com.desaysv.svhttp.anno.SavePath;
import com.desaysv.svhttp.anno.Url;
import com.desaysv.svhttp.anno.Entity;
import com.desaysv.svhttp.callback.IDownLoadCallBack;
import com.desaysv.svhttp.callback.IRequestCallBack;
import com.desaysv.svhttp.handler.type.ParamsType;

/**
 * @author linzi
 * @date 2022-7-19
 */
public interface Test {
    @GET(path = "linzi")
    void test(@Param(key = "testsss")String test, @Param(key = "test333")String test2, IRequestCallBack callBack);
    @GET
    void down(@Url String uri, @SavePath String path, IDownLoadCallBack callBack);
    @POST(path = "/user/login")
    void test2(@Param(key = "account")String account, @Param(key = "pwd")String pwd, IRequestCallBack callBack);
    @POST(path = "/hozonGame/buryPointCollect/v1/collectPlatformBuryPoints")
    @Body(value = ParamsType.APPLICATION_JSON)
    void test3(@Param(key = "startTime") String json, @Param(key = "endTime") String json1, @Param(key = "accessToken") String json2, IRequestCallBack callBack);
    @POST(path = "/hozonGame/buryPointCollect/v1/collectPlatformBuryPoints")
    @Body(value = ParamsType.APPLICATION_JSON)
    void test4(@Entity Object entity, IRequestCallBack callBack);
}
